package org.sbbs.multitenancy.beans;


import javax.jws.WebService;
import java.util.List;
import org.sbbs.multitenancy.dto.TodoItem;
import org.sbbs.multitenancy.exceptions.InvalidCredentialsException;

@WebService
public interface TodoListService {
    /**
     * Add an entry to currently logged tenant
     * @param content text of the entry
     */
    void insertItem(String content) throws InvalidCredentialsException;

    /**
     * Read all entries of logged-in tenant
     * @return List of all available items for this tenant
     */
    List<TodoItem> readItems() throws InvalidCredentialsException;
}
